$OJ=\sega\xmen\obj\ramequ VB DA NOXR

;************************************
;* Project:	X-Men   	    *
;* Machine:	Sega Game Gear	    *
;* Processor:	Z80		    *
;* Author:	Paul Hutchinson	    *
;* (c) MCMXCIII	Sega of America	    *
;************************************


	public	CHAN_0
	public	CHAN_0_STACK
	public	CHAN_1
	public	CHAN_1_STACK
	public	CHAN_2
	public	CHAN_2_STACK
	public	NOISE_CHAN
	public	NOISE_STACK
	public	sfx_CHAN
	public	sfx_STACK
	public	MASTER_VOLUME_DATA
	public	SOUND_FLAG
	public	REQ_MUSIC
	public	REQ_sfx

	public	MUSICAL
	public	MusicSpeed
	public	SFXToggle

	public	Paused

	public	PSG
	public	RW
	public	VDP



CHAN_0	equ	0c000h
CHAN_0_STACK	equ	CHAN_0+32
CHAN_1	equ	CHAN_0_STACK+32
CHAN_1_STACK	equ	CHAN_1+32
CHAN_2	equ	CHAN_1_STACK+32
CHAN_2_STACK	equ	CHAN_2+32
NOISE_CHAN	equ	CHAN_2_STACK+32
NOISE_STACK	equ	NOISE_CHAN+32
sfx_CHAN	equ	NOISE_STACK+32
sfx_STACK	equ	sfx_CHAN+32
MASTER_VOLUME_DATA	equ	sfx_STACK+32
SOUND_FLAG	equ	MASTER_VOLUME_DATA+4
REQ_MUSIC	equ	SOUND_FLAG+1
REQ_sfx	equ	REQ_MUSIC+1

MUSICAL	equ	Req_SFX+1			;1 byte
MusicSpeed	equ	Musical+1		;1 byte
SFXToggle	equ	MusicSpeed+1		;1 byte

Paused	equ	SFXToggle+1

PSG	equ	0007fh
RW	equ	000beh
VDP	equ	000bfh

	END


